古风漫画[画].js 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. var rule = {
  2. 类型: '漫画',//影视|听书|漫画|小说
  3. title: '古风漫画[画]',
  4. host: 'https://www.gufengmh9.com/',
  5. //host:'https://www.gufengmh.com/',
  6. url: '/list/fyclass/fypage/',
  7. searchUrl: '/search/?keywords=**&page=fypage',
  8. searchable: 2,
  9. quickSearch: 0,
  10. filterable: 1,
  11. filter: '',
  12. filter_url: '',
  13. filter_def: {},
  14. headers: {
  15. 'User-Agent': 'MOBILE_UA',
  16. },
  17. timeout: 5000,
  18. class_parse: '.filter-nav&&ul&&li;a&&Text;a&&href;.*/(.*?)/',
  19. cate_exclude: '全部',
  20. play_parse: true,
  21. lazy: $js.toString(() => {
  22. //log(input);
  23. let html = request(input);
  24. let scripts = pdfa(html, 'script');
  25. //log(scripts);
  26. let scode = scripts.filter(it => it.includes('var chapterImages'))[0];
  27. scode = pdfh(scode, 'script&&Html');
  28. //log(scode);
  29. let cpath = scode.match(/var chapterPath =.*?"(.*?)"/)[1];
  30. //log(cpath);
  31. let pgpath = scode.match(/var pageImage =.*?"(.*?)"/)[1];
  32. //log(pgpath);
  33. let img_str = scode.match(/chapterImages = (.*?);/)[1];
  34. // https://res.xiaoqinre.com/images/comic/1366/2730910/1702075658iUtiEMC70Hu8l1AE.jpg
  35. //log(img_str);
  36. let img_prefix = getHome(pgpath) + '/' + cpath;
  37. log(img_prefix);
  38. let imgs = eval(img_str);
  39. //log(imgs);
  40. imgs = imgs.map(it => img_prefix + it);
  41. //log(imgs);
  42. input = {url: 'pics://' + imgs.join('&&')};
  43. }),
  44. double: false,
  45. 推荐: '.cover-list li;*;*;*;*;*',
  46. 一级: '#w1&&.book-list&&li;a&&title;img&&src;.tt&&Text;a&&href;.updateon&&Text',
  47. 二级: {
  48. title: 'h1&&Text',
  49. img: 'img.pic&&src',
  50. desc: '.detail-list&&.sj&&Text',
  51. content: '#intro-cut&&p&&Text',
  52. tabs: '.caption&&span',
  53. lists: '.chapter-body&&ul&&li',
  54. tab_text: 'body&&Text',
  55. list_text: 'body&&Text',
  56. list_url: 'a&&href',
  57. list_url_prefix: '',
  58. },
  59. 搜索: '#w0&&.book-list&&li;*;*;*;*;*',
  60. }